﻿using AIO.Entity;
using AIO.IService.Base;

namespace AIO.IService
{
    public interface IAccountRepository:IBaseRepository<Account>
    {
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="AccountName">账户</param>
        /// <param name="AccountPassword">密码</param>
        /// <returns></returns>
        public Account? Login(string AccountName,string AccountPassword);

        /// <summary>
        /// 根据ID获取账户信息
        /// </summary>
        /// <param name="Id">账户ID</param>
        /// <returns></returns>
        public Account? GetById(Guid Id);
    }
}
